package wsepForum.ui.console;

/**
 * This class holds information on the current state of the user regarding the UI.
 * meaning, in which section, topic or message the user is in.
 * @author Ariel Rozen
 *
 */
public class ConsoleUIState {
	/*****************************
	 * MEMBERS                   *
	 *****************************/
	/**
	 * The ID of the current element the user is in at the moment.
	 */
	private int currentElementID;
	/**
	 * The string representation of the location.
	 */
	private String path;
	/**
	 * true - current element is section, false - current element is topic.
	 */
	private boolean isSection;
	
	/*****************************
	 * METHODS                   *
	 *****************************/	
	public ConsoleUIState() {
		//default is root element.
		this.currentElementID = 0;
		this.path = "root";
		isSection = true;
	}
	
	public int getCurrentElementID() {
		return this.currentElementID;
	}
	
	public void setCurrentElementID(int currentElementID) {
		this.currentElementID = currentElementID;
	}
	public String getPath() {
		return this.path;
	}
	public void setPath(String path) {
		this.path = path;
	}

	public boolean isSection() {
		return this.isSection;
	}

	public void setIsSection(boolean isSection) {
		this.isSection = isSection;
	}
	
	
}
